<?php
class Admin_IndexController extends Promotor_Controller_Action {

	public $skin = array(
		// forsuje domyslny template i style na admin
		'template' => 'admin',
		'style' => 'default',
		// layout
		'layout' => 'admin_system',
		// rozszerzam konfiguracje
		'config' => array(
			'filename' => 'backend_config.ini'
		),
    );

    public $acl = array(
		'index' => 'list'
	);

	public function indexAction() {
		$this->_redirect('/site/site/list');
//		$model = Admin_Model_Modules::getInstance();
		//var_dump($model->getModulesPath());
		//var_dump($model->getList());
//		$this->view->nav = $model->getNavigation();
//		$this->view->nav = new Zend_Navigation($nav);
	}
}